package cn.silver.module.authority.controller;

import cn.silver.framework.mybatis.controller.BusController;
import cn.silver.module.authority.bean.TenantGroupBean;
import cn.silver.module.authority.domain.SysTenantGroup;
import cn.silver.module.authority.param.TenantGroupParam;
import cn.silver.module.authority.service.ISysTenantGroupService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 租户管理
 *
 * @author Silver Zhou
 */
@Validated
@RestController
@RequiredArgsConstructor
@Tag(name = "权限管理-租户管理")
@RequestMapping("/system/tenant/group")
public class SysTenantGroupController extends BusController<ISysTenantGroupService, SysTenantGroup, TenantGroupParam, TenantGroupBean> {
    @Override
    @Resource
    public void setBaseService(ISysTenantGroupService baseService) {
        this.baseService = baseService;
        this.setCode("authority:tenant");
        this.setTitle("权限管理-租户管理-租户套餐管理");
    }
}
